package aircraft_war;

import java.awt.image.BufferedImage;

public class AirPlane extends BasicClass implements AddScore {
    int speed;
    int score;
    @Override
    public void move() {
        //垂直向下运动y+=speed;
        y+=speed;
    }
    /*BufferedImage[] imgs= {Main.airPlane0,Main.airPlane1};
    public void destory(){
        this.img=imgs[0];
        this.img=imgs[1];
    }*/

    public AirPlane(){
        img=Main.airPlane;
        speed=5;
        score=5;
        width=img.getWidth();
        height=img.getHeight();
        blood=1;
        x=(int)(Math.random()*(Main.WIDTH-width));
        y=-height;
        /*y=100;*/
    }

    @Override
    public int addScore() {
        return score;
    }
}
